package top.leix.springdemo.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 教师申请表
 * @TableName apply_lab_teacher
 */
@TableName(value ="apply_lab_teacher")
@Data
public class ApplyLabTeacher implements Serializable {
    /**
     * id
     */
    @TableId(value = "applyID", type = IdType.AUTO)
    private Long applyID;

    /**
     * 星期几
     */
    @TableField(value = "weekDay")
    private Integer weekDay;

    public Integer getWeekDay() {
        return weekDay;
    }

    public void setWeekDay(Integer weekDay) {
        this.weekDay = weekDay;
    }

    /**
     * 申请人账号
     */
    @TableField(value = "applyUserAccount")
    private String applyUserAccount;

    /**
     * 申请人名字
     */
    @TableField(value = "applyUserName")
    private String applyUserName;

    /**
     * 申请状态,Pending-未排课,Scheduled-已排课
     */
    @TableField(value = "applyStatus")
    private Object applyStatus;

    /**
     * 学期
     */
    @TableField(value = "semester")
    private String semester;

    /**
     * 上课班级
     */
    @TableField(value = "classID")
    private Integer classID;

    /**
     * 班级人数
     */
    @TableField(value = "studentNum")
    private Integer studentNum;

    /**
     * 实验室类别
     */
    @TableField(value = "labType")
    private Object labType;

    /**
     * 开始周
     */
    @TableField(value = "startWeek")
    private Integer startWeek;

    /**
     * 结束周
     */
    @TableField(value = "endWeek")
    private Integer endWeek;

    /**
     * 节次
     */
    @TableField(value = "applySection")
    private String applySection;

    /**
     * 创建时间
     */
    @TableField(value = "createTime")
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField(value = "updateTime")
    private Date updateTime;

    /**
     * 是否删除
     */
    @TableField(value = "isDelete")
    private Integer isDelete;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        ApplyLabTeacher other = (ApplyLabTeacher) that;
        return (this.getApplyID() == null ? other.getApplyID() == null : this.getApplyID().equals(other.getApplyID()))
            && (this.getApplyUserAccount() == null ? other.getApplyUserAccount() == null : this.getApplyUserAccount().equals(other.getApplyUserAccount()))
            && (this.getApplyUserName() == null ? other.getApplyUserName() == null : this.getApplyUserName().equals(other.getApplyUserName()))
            && (this.getApplyStatus() == null ? other.getApplyStatus() == null : this.getApplyStatus().equals(other.getApplyStatus()))
            && (this.getSemester() == null ? other.getSemester() == null : this.getSemester().equals(other.getSemester()))
            && (this.getClassID() == null ? other.getClassID() == null : this.getClassID().equals(other.getClassID()))
            && (this.getStudentNum() == null ? other.getStudentNum() == null : this.getStudentNum().equals(other.getStudentNum()))
            && (this.getLabType() == null ? other.getLabType() == null : this.getLabType().equals(other.getLabType()))
            && (this.getStartWeek() == null ? other.getStartWeek() == null : this.getStartWeek().equals(other.getStartWeek()))
            && (this.getEndWeek() == null ? other.getEndWeek() == null : this.getEndWeek().equals(other.getEndWeek()))
            && (this.getApplySection() == null ? other.getApplySection() == null : this.getApplySection().equals(other.getApplySection()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()))
            && (this.getIsDelete() == null ? other.getIsDelete() == null : this.getIsDelete().equals(other.getIsDelete()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getApplyID() == null) ? 0 : getApplyID().hashCode());
        result = prime * result + ((getApplyUserAccount() == null) ? 0 : getApplyUserAccount().hashCode());
        result = prime * result + ((getApplyUserName() == null) ? 0 : getApplyUserName().hashCode());
        result = prime * result + ((getApplyStatus() == null) ? 0 : getApplyStatus().hashCode());
        result = prime * result + ((getSemester() == null) ? 0 : getSemester().hashCode());
        result = prime * result + ((getClassID() == null) ? 0 : getClassID().hashCode());
        result = prime * result + ((getStudentNum() == null) ? 0 : getStudentNum().hashCode());
        result = prime * result + ((getLabType() == null) ? 0 : getLabType().hashCode());
        result = prime * result + ((getStartWeek() == null) ? 0 : getStartWeek().hashCode());
        result = prime * result + ((getEndWeek() == null) ? 0 : getEndWeek().hashCode());
        result = prime * result + ((getApplySection() == null) ? 0 : getApplySection().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
        result = prime * result + ((getIsDelete() == null) ? 0 : getIsDelete().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", applyID=").append(applyID);
        sb.append(", applyUserAccount=").append(applyUserAccount);
        sb.append(", applyUserName=").append(applyUserName);
        sb.append(", applyStatus=").append(applyStatus);
        sb.append(", semester=").append(semester);
        sb.append(", classID=").append(classID);
        sb.append(", studentNum=").append(studentNum);
        sb.append(", labType=").append(labType);
        sb.append(", labType=").append(weekDay);
        sb.append(", startWeek=").append(startWeek);
        sb.append(", endWeek=").append(endWeek);
        sb.append(", applySection=").append(applySection);
        sb.append(", createTime=").append(createTime);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", isDelete=").append(isDelete);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}